package io.renren.modules.generator.dao;

import io.renren.modules.generator.entity.TTrainingObjectEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 训练科目
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-08-07 13:58:40
 */
@Mapper
public interface TTrainingObjectDao extends BaseMapper<TTrainingObjectEntity> {

    /**
     * 根据科目名称和训练id  拿科目id
     */
    TTrainingObjectEntity getKmid(TTrainingObjectEntity trainingObjectEntity);

    List<TTrainingObjectEntity> getObjectListByTrainingId(@Param("tiainingId") Integer tiainingId);
	
}
